﻿using System.ComponentModel.DataAnnotations;

namespace ProduceBasicData.Api.DTO
{
    /// <summary>
    /// 工位管理dto类
    /// </summary>
    public class WorkStationDto
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 工位名称
        /// </summary>
        public string WorkstationName { get; set; }
        /// <summary>
        /// 工位编码
        /// </summary>
        public string Workstationcode { get; set; }

        /// <summary>
        /// 工位描述
        /// </summary>
        public string Workstationdesc { get; set; }

        /// <summary>
        /// 所属产线
        /// </summary>
        public int Productionid { get; set; }

        /// <summary>
        /// 产线名称
        /// </summary>
        public string Productionname { get; set; }

        /// <summary>
        /// 所属工序
        /// </summary>
        public int Processid { get; set; }


        /// <summary>
        /// 工序名称
        /// </summary>
        public string Processname { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(50)]
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(50)]
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
